package org.s3.project.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author fy
 * @version 1.0
 * @Description
 * @date 2024/12/16 10:57
 * 读取默认的属性文件里面的自定义属性
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Component //帮你new对象
@ConfigurationProperties(prefix = "myconfig")    //加了这   个注解会读取默认文件的属性
public class MyConfigProperties {
    private Integer pageSize; //#默认的分页

}
